package com.xxxx.seckill.test.rabbitMq.conf;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static com.xxxx.seckill.test.rabbitMq.conf.MqNames.NORMAL_QUEUE;
import static com.xxxx.seckill.test.rabbitMq.conf.MqNames.WORK_QUEUE;

@Configuration
public class rebbitMqconfFanout {


    @Bean
    public Queue queue01(){
        return new Queue(NORMAL_QUEUE);
    }
    @Bean
    public Queue queue02(){
        return new Queue(WORK_QUEUE);
    }
}
